package com.cloud.mapper;

import com.cloud.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author .
 * created in 2020/1/12 17:40
 */

@Repository
public interface OrderMapper {

    int addOrder(Order order);

    int delOrder(@Param("id") int id);

    int updateOrder(Order order);

    int getOrdersCount(@Param("no") String no);

    List<Order> findAllOrdersByPage(@Param("page") int page, @Param("limit") int limit, @Param("no") String no);

    Order findById(@Param("id") int id);

}
